<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/piaoyi.tld" prefix="piaoyi"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>【西安演唱会|西安演唱会门票|西安音乐会门票】-票易网</title>
<meta name="description" content="票易网是西安本地最大的西安演唱会、西安音乐会门票转让交易，预定信息的平台，汇集了大量西安演唱会、西安音乐会门票转让 预订信息供您选择，同时您也可以在这里查询西安演唱会、西安音乐会门票转让和预定信息。" />
<meta name="keywords" content="西安演唱会,西安演唱会门票,西安音乐会门票" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/user.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="css/changejs.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.pngFix.pack.js"></script>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery.checkbox.js"></script>
<script type="text/javascript" src="js/jquery.lazyload.js"></script>
<script type="text/javascript" src="js/foucs.js"></script>
<script type="text/javascript">
	$("img").seeIt(function(){$(this).attr("src" , $(this).attr("original"));}, {nearby : 200});
	var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0578294a14fae8ac90f4609ae2844eda' type='text/javascript'%3E%3C/script%3E"));

	$(function(){
		var $zscrtime;
		$zscrtime = setInterval(function(){
			var $leng = $('ul#xxk img[original1!="true"]');
			$leng.each(function(i,o){
				var self = $(o);
				if(self.attr("original1")!="true"){
					self.attr("src", self.attr("original1"));
					self.attr("original1","true");
				}
				if(i>2) return false;
			});
		   if($leng.length==0) clearInterval($zscrtime);
			
		},5000);
	});
	
	function delcheckinfo()
{
	if (confirm('确认删除吗？')){
		var ids = $("input[name=cartid]").checkbox().val();
		if(ids.length>0){
		 $.get("shop_cart.action?action=dodels&ids=" + ids,null,function(data){window.location.reload();});
		}
	}
}
</script>
</head>
<body>
<div class="wrap">

	<div class="list_header">
    	<div class="top"><s:include value="/top.jsp" /></div>
	</div>
    <div class="list_main">
    

    	<div class="gwc_content">
       
        	<dl>
             <div class="gwc_t">
              <ul>
                  <li class="gwc_select">1.查看购物车</li>
                  <li class="gwc_t1">2.确认订单信息</li>
                  <li class="gwc_t1">3.成功提交订单信息</li>
              </ul>
             </div>
             
              <div class="gwc_2">
             <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr class="user_shop">
                                  <td width="6%" align="left">&nbsp;</td>
                                  <td width="45%" align="left">商品名称</td>
                                  <td width="12%" height="32" align="left">票价</td>
                                  <td width="11%" align="left">数量</td>
                                  <td width="13%" align="left">小计</td>
                                  <td width="13%" align="left">操作</td>
                                </tr>
								<s:iterator id="c" value="%{carts}" >
                                <tr class="user_name">
                                 <td align="left"><p>
                                   <input id="cartid_<s:property value="#c.id"/>" value="<s:property value="#c.id"/>" type="checkbox" name="cartid" />
                                   <label for="checkbox"></label>
                                 </td>
                                  <td align="left"><s:property value="#c.goods.name"/><br />
                                  <span class="user_time1">
                                  <s:if test="#c.daily.limitTime==0">
							      	  不限时间
							        </s:if>
							        <s:else>
							      	  <piaoyi:dailyTime value="#c.daily"/>
							        </s:else>
                                  </span></td>
                                  <td align="left"><s:property value="#c.price.price"/></td>
                                  <td align="left"><s:property value="#c.goodsNumber"/></td>
                                  <td align="left"><s:property value="#c.totalPrice"/></td>
                                  <td align="left"><a href="/shop_cart.action?action=dodel&id=<s:property value="#c.id"/>">删除</a></td>
                                </tr>
                                </s:iterator>   
                </table></div>                     
                 <div class="gwc_2">
                 <span class="gwc_lf"><input type="button" name="button" id="button" value="删除所选商品" onclick="delcheckinfo();" />
                 </span>
                  <span class="gwc_r"> 商品总价(不含运费)：<FONT class="bl"><s:property value="goodsAmount"/></FONT>元 </span>
                </div> 
                <div class="gwc_2"> <span class="gwc_r"> <a href="/order_sure.action"><img src="images/g_4.jpg" border="0"  /></a></span></div>                            
        	</dl> 	
        </div>
    
  </div>

    
    <div class="footer">
      <s:include value="/foot.jsp" />
    </div>

</div>
</body>
</html>
